package com.education.dao;

import com.education.pojo.Grade;
import org.apache.ibatis.annotations.Param;

public interface GradeMapper {
    int deleteByPrimaryKey(Integer gId);

    int insert(Grade record);

    int insertSelective(Grade record);

    Grade selectByPrimaryKey(Integer gId);
    //获取年级的ID
    Grade selectByGradeName(@Param("gname") String gname);

    int updateByPrimaryKeySelective(Grade record);

    int updateByPrimaryKey(Grade record);
}